home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 27 / CU Amiga Magazine's Super CD-ROM 27 (1998)(EMAP Images)(GB)[!][issue 1998-10].iso / CUCD / PowerPC / vbcc / machines / amigawos / libsrc / AmigaLib / LibCreatePool.c < prev    next >
C/C++ Source or Header  |  1998-08-02  |  643b  |  34 lines

  1. /*
  2. ** amiga.lib for vbcc-PowerOpen/WarpOS
  3. **
  4. ** LibCreatePool(), LibDeletePool()
  5. **
  6. ** V0.2 19-Apr-98 phx
  7. **      AllocVecPPC() returns APTR, so a cast is needed
  8. ** V0.1 15-Mar-98 phx
  9. **      only dummy functions, because WarpOS has no mem pools in V14
  10. */
  11.  
  12. #include <exec/types.h>
  13. #include <clib/powerpc_protos.h>
  14.  
  15. struct dummyPool {
  16.   ULONG reqs;
  17. };
  18.  
  19.  
  20. APTR LibCreatePool(ULONG requirements, ULONG puddleSize, ULONG threshSize)
  21. {
  22.   struct dummyPool *dp;
  23.  
  24.   if (dp = (struct dummyPool *)AllocVecPPC(sizeof(struct dummyPool),0,0))
  25.     dp->reqs = requirements;
  26.   return (dp);
  27. }
  28.  
  29.  
  30. VOID LibDeletePool(APTR poolHeader)
  31. {
  32.   FreeVecPPC(poolHeader);
  33. }
  34.